#ifndef CHINESEGAMERULE_H
#define CHINESEGAMERULE_H
#include "../framework/GameRule.h"
#include <vector>
class ChineseGameRule : public GameRule
{
public:
    ChineseGameRule();
    bool checkAddPoint(QPoint&,QPoint&,Player*);
    bool checkChosenPoint(QPoint&,Player*);
    void putChess(std::vector<QPoint>*,Player*);
    Player* getFirstPlayer();
    Player* getNextPlayer(Player*);
    bool isWin();
private:
    bool checkChessRule(Chess*,QPoint, QPoint);
    std::vector<QPoint> vec1;
    std::vector<QPoint> vec2;
    std::vector<QPoint> vec3;
    std::vector<QPoint> vec4;

};

#endif // CHINESEGAMERULE_H
